import request from "@/network/request";

export function list(pageModel) {
    return request({
        url: '/file/file/list',
        params:pageModel
    })
}

export function saveFile(params) {
    return request({
        url: '/file/file/save',
        data: params
    })
}

export function deleteFile(id) {
    return request({
        url: '/file/file/delete/' + id,
    })
}

export function uploadFile(formData)
{
    return request({
        url: 'http://localhost:9000/file/admin/upload',
        data: formData,
        headers: {'content-type': 'multipart/form-data'}
    })
}
